<script setup lang="ts">
import { AddIcon, CloudUploadIcon, DiscountIcon, CloudDownloadIcon } from 'tdesign-icons-vue-next';
</script>

<template>
  <t-config-provider :global-config="{ classPrefix: 't' }">
    <t-space direction="vertical" style="width: 100%; text-align: center">
      <logo />
      <h3>Welcome to use TDesign！</h3>
      <t-space>
        <t-button theme="primary">
          <add-icon />
          新建
        </t-button>
        <t-button variant="outline">
          <cloud-upload-icon />
          上传文件
        </t-button>
        <t-button shape="circle" theme="primary">
          <discount-icon />
        </t-button>
        <t-button shape="circle" theme="primary">
          <cloud-download-icon />
        </t-button>
        <t-button variant="outline">搜索</t-button>
      </t-space>
    </t-space>
  </t-config-provider>
  <div>
    <a href="https://vitejs.dev" target="_blank">
      <img src="/vite.svg" class="logo" alt="Vite logo" />
    </a>
    <a href="https://vuejs.org/" target="_blank">
      <img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
    </a>
  </div>
</template>

<style scoped>
.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
  filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
